package demo;

import javax.jws.WebService;

import org.apache.log4j.Logger;

import com.lnsoft.util.LoggerUtil;

@WebService
public class TestServer implements ITestServer {
    
    private static Logger logger = Logger.getLogger(TestServer.class);

	public String myTest(String name) {
	    try {
	        return "测试成功："+name;
        } catch(Exception e) {
            e.printStackTrace();
            logger.error(LoggerUtil.getMessage(e));
            return "服务端方法异常！";
        }
	}

}
